import http from '@/utils/request'

// 获取商品列表
export const getProductList = (params: {
    pageNum: number
    pageSize: number
	status: number
    categoryId?: number | string
    keyword?: string
}) => {
    return http.get('/product/api/product/list', params)
}

// 获取商品分类树
export const getCategoryTree = () => {
    return http.get('/product/api/category/tree')
}

// 获取商品详情
export const getProductDetail = (id: number | string) => {
    return http.get(`/product/api/product/${id}`)
} 